<?php if (!defined('THINK_PATH')) exit();?><table class="table-grid">
    <thead>
        <tr><th>名称</th><th>代码</th><th>排序</th><th>备注</th><th>时间</th><th>操作</th></tr>
    </thead>
    <tbody>
    <?php if(is_array($list)): foreach($list as $key=>$vo): if(is_numeric($key)): $key=$key+1; endif; ?><tr><td><?php echo ($vo["role_name"]); ?></td><td><?php echo ($vo["role_code"]); ?></td><td><?php echo ($vo["ordinal"]); ?></td><td><?php echo ($vo["remark"]); ?></td><td><?php echo ($vo["create_time"]); ?></td><td><a href="<?php echo U('Role/role_edit','id='.$vo['id']);?>" class="btn-edit">编辑</a><a href="<?php echo U('Role/role_delete','id='.$vo['id']);?>" class="btn-trash lnk-confirm">删除</a><a href="<?php echo U('Permission/role_rules','id='.$vo['id']);?>" class="btn-locked">权限</a></td></tr>
        <?php if(is_array($vo['sub'])): foreach($vo['sub'] as $key2=>$vo2): if(is_numeric($key2)): $key2=$key2+1; endif; ?><tr><td>----<?php echo ($vo2["role_name"]); ?></td><td><?php echo ($vo2["role_code"]); ?></td><td><?php echo ($vo2["ordinal"]); ?></td><td><?php echo ($vo2["remark"]); ?></td><td><?php echo ($vo2["create_time"]); ?></td><td><a href="<?php echo U('Role/role_edit','id='.$vo2['id']);?>" class="btn-edit">编辑</a><a href="<?php echo U('Role/role_delete','id='.$vo2['id']);?>" class="btn-trash lnk-confirm">删除</a><a href="<?php echo U('Permission/role_rules','id='.$vo2['id']);?>" class="btn-locked">权限</a></td></tr>
            <?php if(is_array($vo2['sub'])): foreach($vo2['sub'] as $key3=>$vo3): if(is_numeric($key3)): $key3=$key3+1; endif; ?><tr><td>--------<?php echo ($vo3["role_name"]); ?></td><td><?php echo ($vo3["role_code"]); ?></td><td><?php echo ($vo3["ordinal"]); ?></td><td><?php echo ($vo3["remark"]); ?></td><td><?php echo ($vo3["create_time"]); ?></td><td><a href="<?php echo U('Role/role_edit','id='.$vo3['id']);?>" class="btn-edit">编辑</a><a href="<?php echo U('Role/role_delete','id='.$vo3['id']);?>" class="btn-trash lnk-confirm">删除</a><a href="<?php echo U('Permission/role_rules','id='.$vo3['id']);?>" class="btn-locked">权限</a></td></tr><?php endforeach; endif; endforeach; endif; endforeach; endif; ?>
</tbody>
</table>
<?php echo ($pager); ?>